USE [jaxdug]
GO

IF  EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_Profile_aspnet_Membership]') AND parent_object_id = OBJECT_ID(N'[dbo].[Profile]'))
ALTER TABLE [dbo].[Profile] DROP CONSTRAINT [FK_Profile_aspnet_Membership]
GO

USE [jaxdug]
GO

/****** Object:  Table [dbo].[Profile]    Script Date: 08/11/2012 17:43:42 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Profile]') AND type in (N'U'))
DROP TABLE [dbo].[Profile]
GO

USE [jaxdug]
GO

/****** Object:  Table [dbo].[Profile]    Script Date: 08/11/2012 17:43:42 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Profile](
	[ProfileId] [int] IDENTITY(1,1) NOT NULL,
	[UserID] [uniqueidentifier] NOT NULL,
	[Company] [varchar](255) NULL,
	[Bio] [varchar](255) NULL,
	[Twitter] [nvarchar](2083) NULL,
	[Google] [nvarchar](2083) NULL,
 CONSTRAINT [PK_Profile] PRIMARY KEY CLUSTERED 
(
	[ProfileId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Profile]  WITH CHECK ADD  CONSTRAINT [FK_Profile_aspnet_Membership] FOREIGN KEY([UserID])
REFERENCES [dbo].[aspnet_Membership] ([UserId])
GO

ALTER TABLE [dbo].[Profile] CHECK CONSTRAINT [FK_Profile_aspnet_Membership]
GO

